<template>
  <div class="topcourse">
    <enterBig
      class="enterBig"
      :width="280"
      :height="177"
      :src="'https://ss.lanqb.com/8ce89702-2c88-4333-9c62-90567df8e34e.jpg?imageView2/1/w/560/h/354/format/webp'"
    ></enterBig>
    <div class="info">
      <a href="">
        <h3 class="courseName">
          <span>
            <img
              src="https://assets-cdn.lanqb.com/school_v5/school/procourse-icon.png"
              alt=""
            />专业课
          </span>
          日系插画
        </h3>
      </a>
      <p class="studyTime">
        <span>学习周期 : 3个月</span>
        <span>
          <em class="red">5555557</em>
          人感兴趣
        </span>
      </p>
      <div class="teasBox">
        <p>主讲老师</p>
        <div class="teachers">
          <div class="teasImg">
            <a href="">
              <img src="" alt="" />
            </a>
          </div>
          <div class="teasName">
            <a href="">
              <p>老肥皂<span></span></p>
            </a>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import enterBig from "@/components/ZComponents/enterBig.vue";

export default {
  components: {
    enterBig,
  },
};
</script>

<style lang="scss" scoped>
.topcourse {
display: inline-block;
  width: 280px;
  height: 352px;
  background-color: #ffffff;
  position: relative;
  margin-top: 20px;
  margin-right: 20px;
  border-radius: 6px;
  .enterBig {
    border-radius: 6px 6px 0 0;
  }
}
.info {
  padding: 10px;
  box-sizing: border-box;
  border-radius: 0 0 6px 6px;
  // margin-bottom: 10px;

  a {
    text-decoration: none;
    display: block;
  }
}

.courseName {
  font-size: 16px;
  color: #212b34;
  font-weight: bold;
  line-height: 23px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 10px;

  span {
    font-weight: normal;
    height: 23px;
    line-height: 23px;
    padding: 3px 5px;
    color: #ffffff;
    font-size: 12px;
    background: #212b34;
    border-radius: 6px;
    margin-right: 4px;

    img {
      width: 10px;
      height: 13px;
      margin-right: 4px;
      vertical-align: middle;
    }
  }
}

.studyTime {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #87959f;
  font-size: 12px;
  cursor: default;

  em {
    font-style: normal;
    color: #ff5900;
    font-size: 12px;
  }
}

.teasBox {
  background-color: white;
  border-radius: 6px;
  padding: 6px 10px 10px;
  margin-top: 8px;
  box-sizing: border-box;

  p {
    padding-bottom: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    color: #525a67;
    border-bottom: 1px solid #f6f8fa;
  }
}

.teachers {
  display: flex;
  height: 40px;

  a {
    display: block;
    text-decoration: none;
  }
}
.teasImg {
  a {
    margin-right: 10px;
    width: 40px;
  }
  img {
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }
}

.teasName a p {
  color: black;
  font-size: 17px;
  line-height: 40px;
  margin-left: 10px;

  span {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url(https://assets-cdn.lanqb.com/pc_users/identity-icon_coo.png)
      no-repeat 50%;
    background-size: 100% 100%;
  }
}
</style>